package com.share.dymamic.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/** 
 * 访问应用首先走此controller
* @author weigen.ye 
* @date 创建时间：2016年9月23日 上午11:05:46 
*
*/
@Controller
@RequestMapping("/")
public class DefaultController extends BasicController {

    @RequestMapping(method = RequestMethod.GET)
    public ModelAndView index(HttpServletRequest request, HttpServletResponse response) {
        ModelAndView mv = new ModelAndView();
        mv.setViewName("/index");
        return mv;
    }
    
}